﻿using System.ComponentModel.DataAnnotations;

namespace S.Y.Passport.Domain.溯源
{
    /// <summary>
    /// 商品信息表
    /// </summary>
    public class GoodsInfo
    {

        /// <summary>
        /// 商品编号
        /// </summary>
        [Key]
        public int GooodId { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodName { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        public string Manufactory { get; set; }

        /// <summary>
        /// 保质期(天)
        /// </summary>
        public int Validuntil { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string Licence { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        public string Factory { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;

    }
}
